package com.eddie.vistor;

/**
 * @author Eddie
 * @date 2022/08/03 17:08
 **/
public class Client {
    public static void main(String[] args) {
        ObjectStructure objectStructure = new ObjectStructure();
        objectStructure.attach(new Man());
        objectStructure.attach(new WoMan());

        //认为有成功
        Success success = new Success();
        objectStructure.display(success);

        Fail fail = new Fail();
        objectStructure.display(fail);

    }
}
